﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WindowsFormsApplication1.DAL;
using WindowsFormsApplication1.Model;

namespace WindowsFormsApplication1.BLL
{
    class PersonBLL
    {
        public int addNew(Person model)
        {
            return new PersonDAL().addNew(model);
        }

        public int delete(int id)
        {
            return new PersonDAL().delete(id);
        }

        public int update(Person model)
        {
            return new PersonDAL().update(model);
        }

        public Person GetPerson(int id)
        {
            return new PersonDAL().GetPerson(id);
        }

        public IEnumerable<Person> GetAll()
        {
            return new PersonDAL().GetAll();
        }
    }
}
